﻿using Net5ApiAndEfMySql.DtoModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VueAndNetCoreEfApi.DtoModel.SystemAdmin;
using VueAndNetCoreEfApi.PoModel.SystemAdmin;

namespace VueAndNetCoreEfApi.IService.SystemAdmin
{
    public interface IOutsourceService
    {
        PagerResult<OutsourcePo> GetPageList(SearchModel sm);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="os_id"></param>
        /// <returns></returns>
        bool DeleteOutsourcePo(int os_id);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="op"></param>
        /// <returns></returns>
        bool UpdateOutsourcePo(OutsourcePo op);
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="op"></param>
        /// <returns></returns>
        bool AddOutsourcePo(OutsourcePo op);
        /// <summary>
        /// 返填
        /// </summary>
        /// <param name="os_id"></param>
        /// <returns></returns>
        OutsourcePo GetOutsourcePoID(int os_id);

        OutsourceDto GetOutsourceDtoByOsid(int os_id);
    }
}
